1 <?php
2     include(
"../includes/config.php");
3     session_start();
4     
if(isset($_SESSION['manufacturer_login'])) {
5         
if($_SESSION['manufacturer_login'] == true) {
6             $query_selectRetailer =
"SELECT * FROM retailer,area WHERE retailer.area_id=area.area_id";
7             $result_selectRetailer = mysqli_query($con,$query_selectRetailer);
8         }
9         
else {
10             header(
'Location:../index.php');
11         }
12     }
13     
else {
14         header(
'Location:../index.php');
15     }
16 ?>
17 <!DOCTYPE html>
18 <html>
19 <head>
20     <title> View Retailer </title>
21     <link rel=
"stylesheet" href="../includes/main_style.css" >
22 </head>
23 <body>
24     <?php
25         include(
"../includes/header.inc.php");
26         include(
"../includes/nav_manufacturer.inc.php");
27         include(
"../includes/aside_manufacturer.inc.php");
28     ?>
29     <section>
30         <h1>View Retailer</h1>
31         <form action=
"" method="POST" class="form">
32         <table
class="table_displayData">
33             <tr>
34                 <th>Sr. No.</th>
35                 <th>Username</th>
36                 <th>Area Code</th>
37                 <th>Phone</th>
38                 <th>Email</th>
39                 <th>Address</th>
40             </tr>
41             <?php $i=
1; while($row_selectRetailer = mysqli_fetch_array($result_selectRetailer)) { ?>
42             <tr>
43                 <td> <?php echo $i; ?> </td>
44                 <td> <?php echo $row_selectRetailer[
'username']; ?> </td>
45                 <td> <?php echo $row_selectRetailer[
'area_code']; ?> </td>
46                 <td> <?php echo $row_selectRetailer[
'phone']; ?> </td>
47                 <td> <?php echo $row_selectRetailer[
'email']; ?> </td>
48                 <td> <?php echo $row_selectRetailer[
'address']; ?> </td>
49             </tr>
50             <?php $i++; } ?>
51         </table>
52         </form>
53     </section>
54     <?php
55         include(
"../includes/footer.inc.php");
56     ?>
57 </body>
58 </html>


Gõ tìm kiếm nhanh...